package com.jiayou.system.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 角色权限表
 * </p>
 *
 * @author lishuang
 * @since 2021-07-19
 */
@ApiModel(value = "SysRolePermission对象", description = "角色权限表")
class SysRolePermission : Model<SysRolePermission>() {

    var id: String? = null

    @ApiModelProperty(value = "角色id")
    var roleId: String? = null

    @ApiModelProperty(value = "权限id")
    var permissionId: String? = null

    @ApiModelProperty(value = "数据权限ids")
    var dataRuleIds: String? = null

    @ApiModelProperty(value = "操作时间")
    var operateDate: LocalDateTime? = null

    @ApiModelProperty(value = "操作ip")
    var operateIp: String? = null


    override fun pkVal(): Serializable? {
        return id
    }

    override fun toString(): String {
        return "SysRolePermission{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", permissionId=" + permissionId +
                ", dataRuleIds=" + dataRuleIds +
                ", operateDate=" + operateDate +
                ", operateIp=" + operateIp +
                "}"
    }
}
